// 订单商品

const orderGoodsDao = require('../dao/orderGoodsDao');

//增加匹配 
module.exports.insert = async function (content) {
    return await orderGoodsDao.insert(content);
}
//删除匹配
module.exports.delete = async function (id) {
    return await orderGoodsDao.delete(id);
}
//修改匹配
module.exports.update = async function (id, content) {
    return await orderGoodsDao.update({ _id: id }, content);
}

//分页所有/条件查询
module.exports.findNo = async function (searchObj,page) {
    return await orderGoodsDao.findNo(searchObj,page);
}
